package cn.itcast.nems.journal.enumeration;

import cn.itcast.ic.common.exception.v2.bean.BizErrorBody;
import cn.itcast.ic.common.exception.v2.bean.BizStatusEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum JournalRefundErrorBodyEnum implements BizErrorBody {
    
    JOURNAL_STATE_NOT_ROLLBACK(BizStatusEnum.BAD_REQUEST, "已完成的凭单才能调价退费退回！"),
    JOURNAL_AMOUNT_DIFFERENT(BizStatusEnum.BAD_REQUEST, "退费金额不一致！"),
    JOURNAL_ROLLBACK_EXIST(BizStatusEnum.BAD_REQUEST, "退费退回记录已存在！"),
    ;
    
    public final BizStatusEnum status;
    public final String message;
    
}
